package com.situ.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "分页查询结果")
@Builder
public class BasePageQueryVO<T> {
    @Schema(description = "当前页码")
    private Long currentPage = 1L;
    @Schema(description = "每页条数")
    private Long pageSize = 10L;
    @Schema(description = "总条数")
    private Long pageTotal;
    @Schema(description = "总页数")
    private Long pages;
    @Schema(description = "分页数据")
    private List<T> list;
}
